package com.sky.exception;

/**
 * 业务异常
 */
public class BaseException extends RuntimeException {

    private int httpStatus; // HTTP 状态码（如 400、401）

    public BaseException(int httpStatus, String message) {
        super(message);
        this.httpStatus = httpStatus;
    }

    // Getter：供全局异常处理器读取
    public int getHttpStatus() {
        return httpStatus;
    }

}
